package com.koron.configure.defectlevel.mapper;

import com.koron.configure.defectlevel.bean.DefectLevelAddDto;
import com.koron.configure.defectlevel.bean.DefectLevelBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DefectLevelMapper {
    int deleteByPrimaryKey(String id);

    int insert(DefectLevelBean record);

    int insertOrUpdate(DefectLevelBean record);

    int insertOrUpdateSelective(DefectLevelBean record);

    int insertSelective(DefectLevelBean record);

    DefectLevelBean selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(DefectLevelBean record);

    int updateByPrimaryKey(DefectLevelBean record);

    List<DefectLevelAddDto > queryAllById(@Param("id")String id);

    List<DefectLevelAddDto> queryAllByLevel(@Param("level")String level);

    List<DefectLevelBean> queryAll();

    DefectLevelBean getDefectLevelByLevel(@Param("level")String level);
}
